package com.webside.series.model;
import java.io.Serializable;
import java.util.Date;
 
 

 
public class Bdictionary implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Integer id;// id

	private String type;// 电影 电视剧 动漫

	private String code;// 类型（喜剧）

	private String name;
	
	private Integer sort;

	private String remark;

	private Integer createUserId;

	private String createUserName;
	 
	private Date createTime;

	private Integer lastUpdateUserId;

	private String lastUpdateUserName;
 
	private Date lastUpdateTime;
	
	private String pName;
	
	private String sName;
	
	
	

	public String getsName() {
		String englishName=this.code.substring(this.code.indexOf("_")+1);
		return englishName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}

	public String getpName() {
		if(this.code.startsWith("MOVIE")){
			return "电影";
		}else if(this.code.startsWith("TVPLAY")){
			return "电视剧";
		}else if(this.code.startsWith("CARTOON")){
			return "动漫";
		}
		return pName;
	}

	public void setpName(String pName) {
		this.pName = pName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type == null ? null : type.trim();
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code == null ? null : code.trim();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public Integer getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName == null ? null : createUserName.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	public void setLastUpdateUserId(Integer lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}

	public String getLastUpdateUserName() {
		return lastUpdateUserName;
	}

	public void setLastUpdateUserName(String lastUpdateUserName) {
		this.lastUpdateUserName = lastUpdateUserName == null ? null : lastUpdateUserName.trim();
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
}